import axios from 'axios';

export function require(config) {
    const instance = axios.create({
        baseURL:'http://106.54.54.237:8000',
    })
    //这个是请求时拦截
    instance.interceptors.request.use((config) => {
        //console.log(config)
        return config;  
    })
    //这个是响应时拦截  
    instance.interceptors.response.use((res) => {
        //console.log(res)
        return res;
    })

    return instance(config);
}